import patch_gen_data_from_pdfs as patch

# 是否批量执行
is_patch = False

if __name__ == '__main__':
    if is_patch is True:
        pdf_instance = patch.PDFParser(dir_pdf_filepath="./product-book/",
                                       page_from_to_config="page_from_to_config.json",
                                       output_path="./output/"
                                       )
    else:
        pdf_instance = patch.PDFParser(dir_pdf_filepath="./product-book/",
                                       page_from_to_config="page_from_to_config_single_page_test.json",
                                       output_path="./output/"
                                       )
    pdf_instance.patch_generate()

